home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Graphismes / 3D / POV-Ray 3.0B5a PPC / POV-Ray 3.0B5a / POVSCN.Scenes / POVSCN / LEVEL2 / CLUSTER.POV < prev    next >
Text File  |  1995-11-08  |  2KB  |  79 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // Recursive cluster of mirrored spheres
  3. // After a classic, Sphereflake, by Eric Haines
  4.  
  5. #version 3.0
  6. global_settings { max_trace_level 20  assumed_gamma 2.2 }
  7.  
  8. #include "colors.inc"
  9.  
  10. camera { // This is an unusual camera since it is a converted file
  11.    location <2.31, 1.43, 1.65>
  12.    up <0, 0, 1>          // The Z axis is up and
  13.    right <-4/3, 0, 0> // The negative X axis is right
  14.    direction <0, -1.60746, 0> // Field of view 45 degrees
  15.    sky <0, 0, 1>
  16.    look_at <0, 0, -0.1>
  17. }
  18.  
  19. sphere { <0, 0, 0>, 10000
  20.    pigment { SkyBlue }
  21.    finish { ambient 1 diffuse .5}
  22. }
  23.  
  24. light_source { <4, 3, 2 > color Gray30 }
  25. light_source { <1, -4, 4> color Gray30 }
  26. light_source { <-3, 1, 5> color Gray30 }
  27.  
  28. plane { z, -0.5
  29.    pigment { color red 1.0 green 0.75 blue 0.33 }
  30.    finish { diffuse 1 }
  31. } // ambient .15 .1 .045
  32.  
  33. /*
  34. union {
  35.    sphere { <0.7, 0, 0>, 0.2 texture { pigment { Red }   finish { diffuse 0.7} } }
  36.    sphere { <0, 0.7, 0>, 0.2 texture { pigment { Green } finish { diffuse 0.7} } }
  37.    sphere { <0, 0, 0.7>, 0.2 texture { pigment { Blue }  finish { diffuse 0.7} } }
  38. }
  39. */
  40.  
  41. #declare Texture =
  42. texture {
  43.    finish {
  44.       ambient 0.03
  45.       diffuse 1
  46.       reflection 0.4
  47.       phong 1
  48.       phong_size 3
  49.    }
  50.    pigment { color red 0.5 green 0.45 blue 0.35 }
  51. }
  52.  
  53. union {
  54.    sphere { <0, 0, 0>, 0.5
  55.       texture {
  56.          Texture
  57.           normal {
  58.              bumps 0.4
  59.              sine_wave
  60.              scale 0.025
  61.           }
  62.       }
  63.    }
  64.  
  65.    union {
  66.       sphere { <0.272166, 0.272166, 0.544331>, 0.166667  }
  67.       sphere { <0.643951, 0.172546, 0>, 0.166667  }
  68.       sphere { <0.172546, 0.643951, 0>, 0.166667 }
  69.       sphere { <-0.371785, 0.0996195, 0.544331>, 0.166667  }
  70.       sphere { <-0.471405, 0.471405, 0>, 0.166667  }
  71.       sphere { <-0.643951, -0.172546, 0>, 0.166667  }
  72.       sphere { <0.0996195, -0.371785, 0.544331>, 0.166667  }
  73.       sphere { <-0.172546, -0.643951, 0>, 0.166667  }
  74.       sphere { <0.471405, -0.471405, 0>, 0.166667  }
  75.       texture { Texture }
  76.    }
  77. }
  78.  
  79.